﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GiteePlugin.Configuration
{
    /// <summary>
    /// Gitee OAuth 认证配置模型
    /// </summary>
    public class GiteeAuthConfig
    {
        /// <summary>
        /// 应用客户端ID（必填）
        /// 在Gitee开放平台申请的Client Identifier
        /// </summary>
        public string ClientId { get; set; } = string.Empty;

        /// <summary>
        /// 应用客户端密钥（必填）
        /// 在Gitee开放平台申请的Client Secret
        /// </summary>
        public string ClientSecret { get; set; } = string.Empty;

        /// <summary>
        /// OAuth回调地址（必填）
        /// 格式示例：https://yourdomain.com/auth/callback
        /// </summary>
        public string RedirectUri { get; set; } = string.Empty;

        /// <summary>
        /// 授权范围（可选）
        /// 默认值：user_info projects pull_requests
        /// </summary>
        public string Scope { get; set; } = "user_info projects pull_requests";
    }
}
